package com.yh.doing.interpret_pattern.demo2;

/**
 * @program: design-patterns
 * @description:
 * @author: yangh0597@163.com
 * @date: 2022-11-27 11:57
 * @problem:
 **/
public class NumTerminalExpression implements IExpression{
    private int value;

    public NumTerminalExpression(int value) {
        this.value = value;
    }

    @Override
    public int interpret() {
        return this.value;
    }
}
